<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>Login</title>
    <link rel="stylesheet" type="text/css" th:href="@{css/bootstrap.min.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{css/signin.css}"/>
    <style type="text/css">
        body {
            padding-top: 50px;
        }

        .starter-template {
            padding: 40px 15px;
            text-align: center;
        }
    </style>
</head>
<body>
<div th:replace="navbar::navbar"></div>
<div class="container">
    <div class="starter-template">
        <p th:if="${param.logout}" class="bg-warning">logged out</p>
        <p th:if="${param.error}" class="bg-danger">error, please try again.</p>
        <h2>Please login with correct username and password.</h2>
        <form class="form-signin" role="form" name="form" th:action="@{/login}" action="/login" method="post">
            <div class="form-group">
                <label for="username">Username</label>
                <input type="text" class="form-control" id="username" name="username" placeholder="username"/>
            </div>
            <div class="form-group">
                <label for="password">Password</label>
                <input type="password" class="form-control" id="password" name="password" placeholder="password"/>
            </div>
            <input type="submit" id="login" value="Login" class="btn btn-primary"/>
        </form>
        <div>
            <form th:action="@{/register}" method="get">
                <input type="submit" id="register" class="btn btn-primary" value="Register"/>
            </form>
        </div>
    </div>
</div>


</body>
</html>